package com.rinlink.jbcodec.creator;

import com.alibaba.fastjson.JSONObject;

import com.rinlink.jbcodec.transform.BytesToBoolean;
import com.rinlink.jbcodec.transform.Transform;

import java.nio.ByteBuffer;

public class ByteBufferToBooleanCreator extends ByteBufferToObjectCreator {
    @Override
    protected Transform create(JSONObject attr, ByteBuffer data, JSONObject t) {
        return new BytesToBoolean(data);
    }
}
